package com.qumap.server.filter;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.qumap.item.content.ObjectOnMapShort;
import com.qumap.item.request.filter.entry.FilterEntry;
import com.qumap.item.test.iteminfo.item1.filter.IT1FilterProcessor;
import com.qumap.server.LoadProcessorHelper;

import java.util.*;

/**
 * Created by IntelliJ IDEA.
 * User: Admin
 * Date: 13.06.11
 * Time: 22:16
 * To change this template use File | Settings | File Templates.
 */
public class T1FilterProcessor extends RemoteServiceServlet implements IT1FilterProcessor {

    private LoadProcessorHelper<ObjectOnMapShort> helper = new LoadProcessorHelper<ObjectOnMapShort>() {
        @Override
        public ObjectOnMapShort buildContent() {
            return new ObjectOnMapShort();
        }
    };

    public T1FilterProcessor() {
    }



    @Override
    public List<ObjectOnMapShort> getFilteredObjects(List<FilterEntry> filters) {
        return helper.getFilteredObjects(filters);
    }

    @Override
    public ObjectOnMapShort loadObject(int object_id) {
        return helper.getObject(object_id);
    }
}
